#ifndef _CFAVI_H_	
#define _CFAVI_H_

#include <cv.h>
#include <cxcore.h>
#include <highgui.h>

class fAvi
{
public:
	CFileDialog* m_pFD;
	double m_posAvi;
	CvCapture* m_pCapture;
	CString m_strOriginWindow;
	IplImage *m_pSrcImage;
	double m_delay;

	int openAvi(void);
	int closeAvi(void);
	int loadAviImage(void);
	int ShowOrginImage(void);
	void TrackbarCallback(int pos);
	double calDelay(void);
	double getFps(void);
	
	fAvi(void);
	~fAvi(void);
};

#endif